package com.kb.order.service.impl;

import com.kb.order.service.IFoodService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.kb.order.pojo.Food;
import com.kb.order.dao.FoodDao;

@Service
public class FoodService implements IFoodService {

    @Resource
    private FoodDao foodDao;

    public int insert(Food pojo){
        return foodDao.insert(pojo);
    }

    public int insertList(List< Food> pojos){
        return foodDao.insertList(pojos);
    }

    public List<Food> select(Food pojo){
        return foodDao.select(pojo);
    }

    public int update(Food pojo){
        return foodDao.update(pojo);
    }

    public List<Food> selectbyshopid(List id){
        return foodDao.selectbyshopid(id);
    };

}
